#include <stdio.h>
#include <string>

int main(int argc, const char **argv) {
    const char *str = "abc\0";
    std::string test = str;
    int i = 0;
    for (i = 0; i < 10; ++i) {
        test += str;
    }
    printf("%lu, test:%s\n", test.size(), test.c_str());
    test.append("hello\0world", 11);
    std::string test2("hello\0world", 11);
    printf("%lu, test:%s\n", test2.size(), test2.c_str());
    return 0;
}
